package DEMO1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class text {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("DEMO1");
        User user = context.getBean(User.class);
        user.sayHi();
    }
}
